﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using System.Windows.Interop;
using System.Runtime.InteropServices;


namespace Kiosk
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {

        [STAThread()]
        static void Main()
        {
            App app = new App();
            app.InitializeComponent();
            sGlobals.idleTimer.Interval = 1000; //check for timeout every 10 seconds
            ComponentDispatcher.ThreadIdle += (sender, e) => System.Windows.Forms.Application.RaiseIdle(e);
            sGlobals.idleTimer.Tick +=new EventHandler(sGlobals.idleTimer_Tick);
            sGlobals.idleTimer.Start();
            sGlobals.launchApplication();
            app.Run();
        }
    }
}
